#!/usr/bin/env python
#
#

import sys
import os

if sys.version_info[:3] < (2,6,0) : 
    import statvfs


st = os.statvfs("/tmp")

if sys.version_info[:3] < (2,6,0) :
    print "preferred block size", "=>", st[statvfs.F_BSIZE]
    print "fundamental block size", "=>", st[statvfs.F_FRSIZE]
    print "total blocks", "=>", st[statvfs.F_BLOCKS]
    print "total free blocks", "=>", st[statvfs.F_BFREE]
    print "available blocks", "=>", st[statvfs.F_BAVAIL]
    print "total file nodes", "=>", st[statvfs.F_FILES]
    print "total free nodes", "=>", st[statvfs.F_FFREE]
    print "available nodes", "=>", st[statvfs.F_FAVAIL]
    print "max file name length", "=>", st[statvfs.F_NAMEMAX]
else :
    print "preferred block size", "=>", st.f_bsize
    print "fundamental block size", "=>", st.f_frsize
    print "total blocks", "=>", st.f_blocks
    print "total free blocks", "=>", st.f_bfree
    print "available blocks", "=>", st.f_bavail
    print "total file nodes", "=>", st.f_files
    print "total free nodes", "=>", st.f_ffree
    print "available nodes", "=>", st.f_favail
    print "max file name length", "=>", st.f_namemax

## preferred block size => 8192
## fundamental block size => 1024
## total blocks => 749443
## total free blocks => 110442
## available blocks => 35497
## total file nodes => 92158
## total free nodes => 68164
## available nodes => 68164
## max file name length => 255

